]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
mixer-control: Don't lie about found devices
authorGuido Günther <agx@sigxcpu.org>
Sun, 4 Jan 2026 12:07:25 +0000 (13:07 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 28 Jan 2026 13:25:18 +0000 (13:25 +0000)
We should only print that a device wasn't found when it is actually
the case.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31
Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34
Bug-Debian: https://bugs.debian.org/1126514
Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4

Gbp-Pq: Topic libgvc
Gbp-Pq: Name mixer-control-Don-t-lie-about-found-devices.patch

subprojects/gvc/gvc-mixer-control.c

index 383a74fcd04d704e0f8d8227e930500987210193..7cdb9092ec3430f8364cf67c69e33cc1ab096bc3 100644 (file)
@@ -289,7 +289,8 @@ gvc_mixer_control_lookup_device_from_stream (GvcMixerControl *control,
                 }
         }
 
-        g_debug ("lookup-device-from-stream - Could not find a device for stream '%s'", gvc_mixer_stream_get_description (stream));
+        if (!ret)
+                g_debug ("lookup-device-from-stream - Could not find a device for stream '%s'", gvc_mixer_stream_get_description (stream));
 
         g_list_free (devices);